package com.yjs.app.trade.service.service.sys.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yjs.app.trade.core.base.mybatis.dbutil.DynamicSwitchDataSource;
import com.yjs.app.trade.service.mapper.sys.AppVersionMapper;
import com.yjs.app.trade.service.service.sys.AppVersionService;

@Service("appVersionService")
@DynamicSwitchDataSource(dataSource = "app")
public class AppVersionServiceImpl implements AppVersionService {

	@Autowired
	AppVersionMapper appVersionMapper;
	
	@Override
	public Map<String, Object> getAndroidLastVersion() {
		return appVersionMapper.getLastVersion(1);
	}

	@Override
	public Map<String, Object> getIOSLastVersion() {
		return appVersionMapper.getLastVersion(2);
	}

	@Override
	public Map<String, Object> downloadAndroidApp() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Map<String, Object> downloadIOSApp() {
		// TODO Auto-generated method stub
		return null;
	}
}
